﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BGM_PS_AddStrategyPlan.aspx.cs" Inherits="KPIS.GERP.GBMS.APP_UI.Form.BGM_PS_AddStrategyPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <base target="_self" />
    <link href="../../Styles/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>                        
    <form id="form1" runat="server" style="font-size: small">
        <script type="text/javascript">
            var isInsert = false;

            function UpdateInsertStatus() {
                isInsert = true;
            }
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }

            function Close(oArg) {
                GetRadWindow().close(oArg);
            }

            function returnToParent() {
                //create the argument that will be returned to the parent page
                var oArg = new Object();
                oArg.isRefresh = isInsert;

                //get a reference to the current RadWindow
                var oWnd = GetRadWindow();

                //Close the RadWindow and send the argument to the parent page
                oWnd.close(oArg);
            }
        </script>

        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="pnlAll">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnlAll" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" >
        </telerik:RadAjaxLoadingPanel>

        <asp:Panel ID="pnlAll" runat="server">
        <div class="DivBody">
        <div class="header-grid">
            เพิ่มแผนผังยุทธศาสตร์
        </div>
        <div>
            <br />
            <table>
                <tr>
                    <td align="right" width="150px">
                        ปีงบประมาณ :
                    </td>
                    <td>
                        <asp:Label ID="lbYear" runat="server" />
                    </td>
                </tr>
            </table>
            <br />
            <table>
                <tr>
                    <td align="right" width="150px">
                        ประเภทยุทธศาสตร์ :
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cbbStrategyType" Runat="server" 
                            OnSelectedIndexChanged="cbbStrategyType_SelectedIndexChanged" 
                            Filter="Contains"
                            Width="470px" AutoPostBack="True" EmptyMessage="เลือกประเภทยุทธศาสตร์">
                        </telerik:RadComboBox>
                    </td>
                </tr>
            </table>
            <br />
            <table>
                <tr>
                    <td align="right" width="150px">
                        ทะเบียนยุทธศาสตร์ :
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cbbStrategyDataList" Runat="server" Width="470px" 
                            OnSelectedIndexChanged="cbbStrategyDataList_SelectedIndexChanged" 
                            Filter="Contains"
                            AutoPostBack="True" EmptyMessage="เลือกทะเบียนยุทธศาสตร์">
                        </telerik:RadComboBox>
                    </td>
                </tr>
            </table>
            <br />
            <table>
                <tr>
                    <td align="right" width="150px">
                        รหัสยุทธศาสตร์ :
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtBgmStratListCode" Runat="server" Width="470px" 
                            AutoPostBack="True"
                            ontextchanged="txtBgmStratListCode_TextChanged">
                        </telerik:RadTextBox>
                    </td>
                </tr>
            </table>
            <br />
            <table>
                <tr valign="top">
                    <td align="right" width="150px">
                        ตัวอย่างหลังปรับปรุง :
                    </td>
                    <td>
                        <telerik:RadTreeView ID="tView" Runat="server">
                        </telerik:RadTreeView>
                    </td>
                </tr>
            </table>
            <br />
            <table width="100%">
                <tr>
                    <td align="center">
                        <telerik:RadButton ID="btnAddData1" runat="server" Text="บันทึกข้อมูล" Width="90px" 
                            onclick="btnAddData_Click" />
                        &nbsp;&nbsp;&nbsp;
                        <telerik:RadButton ID="btnClose1" runat="server" 
                            OnClientClick="Close(false);return false;" Text="ยกเลิก" Width="90px" />
                    </td>
                </tr>
            </table>
        </div>
        </div>
        </asp:Panel>
    <!-- Initialize javascript -->
</form>
</body>
</html>
